<template>
  <div>
    <router-link to="/account"  v-if="this.$store.state.shopm.arr.length!=0">
  <van-submit-bar :price="text*100*this.$store.state.shopm.arr[0].coffee[0].coffee_first_price" button-text="提交订单" style="position: static;" @submit="onSubmit()" />
    </router-link>
    
  </div>
</template>

<script>
import eventbus from"@/components/eventbus/eventbus.js"
export default {
  data(){
    return{
      text:1
    }
  },
   methods:{
     onSubmit(){

     }
   },
   mounted(){
     this.$store.dispatch("shopData",{url:"http://81.68.226.70:8050/coffee/"}).then(()=>{
      // this.bool=true
     }),
        eventbus.$on("xiaoming",(val)=>{
            // console.log(val),
            this.text=val
        })
    }
}


</script>

<style>

</style>